/// @file ContainerWidget.h
#pragma once

#include <QWidget>

namespace qtangram {
    /**
      @class ContainerWidget
      @brief Specifies frame's view range
      */
class ContainerWidget : public QWidget {
public:
    /// @brief Default constructo
    ContainerWidget(double viewRange = 2, QWidget* parent = 0, Qt::WindowFlags f = 0) : QWidget(parent, f), viewRange(viewRange) {}
    const double& getViewRange() const { return viewRange; } ///< @return const reference to view range value
    void set(double newRange) { viewRange = newRange; } ///< @brief sets view range @param newRange new view range value
    int heightForWidth(int w) { return w; } ///< @brief Ensures squere-scaling.
protected:
    double viewRange; ///< @brief view range in world's coordinates' system.
};
}
